package com.woniu.utils.execption.useraccount;

import lombok.AllArgsConstructor;


@AllArgsConstructor
public enum UserAccountExceptionCode {
    ACCOUNT_CODE_CEILING(11001,"验证码达到上限"),
    ACCOUNT_CODE_ERROR(11002,"验证码错误"),
    ACCOUNT_EXITS_CARDID(11003,"该身份证号已被认证"),

    ACCOUNT_NOT_REGISTER(10001,"用户还为注册"),
    ACCOUNT_PASSWORD_ERROR(10002,"密码错误"),
    ACCOUNT_REGISTER(10003,"账号已存在"),
    ACCOUNT_PASSWORD_REPEAT(10004,"新密码与旧密码相同"),
    ACCOUNT_OLD_PASSWORD_NO_PASS(10004,"输入的旧密码有误"),
    ACCOUNT_NOT_LOGIN(10005,"用户未认证"),
    ACCOUNT_CARDID_REPLA(10006,"身份证号重复"),
    ACCOUNT_PHONECODE_REPLA(10008,"电话号已被注册"),
    ACCOUNT_STATE_ERROR(10009,"账号状态异常,请重新登录"),

    USER_NOT_AUTHENTICATION(10010,"你已经实名,无需再次实名"),
    ;
    private Integer code;
    private String messages;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessages() {
        return messages;
    }

    public void setMessages(String messages) {
        this.messages = messages;
    }
}
